﻿ALTER TABLE [dbo].[Messages]
    ADD CONSTRAINT [FK_Messages_Users] FOREIGN KEY ([UserId]) REFERENCES [dbo].[Users] ([UserId]) ON DELETE NO ACTION ON UPDATE NO ACTION;


GO
ALTER TABLE [dbo].[Messages] NOCHECK CONSTRAINT [FK_Messages_Users];

